package commands;

import java.util.List;

import controller.ExecutorsManager;
import controller.ExecutorsManager.FilesInUserFolderNameExecutor;
import database.DbFile;

/**
 * class FilesInUserFolderNameCommand - execute get files in user folder command
 */
public class FilesInUserFolderNameCommand {
	FilesInUserFolderNameExecutor filesInUserFolderNameExecutor = ExecutorsManager.getInstance().getFilesInUserFolderNameExecutor();	
	
	/**
	 * constructor
	 */
	public FilesInUserFolderNameCommand(){}

	/**
	 * @param userID - a user name
	 * @param folderName - a folder name
	 * @return a list of files that under this user folder
	 */
	public List<DbFile> action(String userID,String folderName) 
	{
		// TODO Auto-generated method stub
		return filesInUserFolderNameExecutor.getFilesInUserFolderName(userID, folderName);			
	}

}
